<?php 
require('include/authority.php');
if(Authority::is_login())
  {
    die('FAIL');
  }
$username = @$_GET['username'];
$password = @$_GET['password'];
if(@!isset($username,$password))
  {
    die('FAIL');
  }
if(!Authority::login($username,$password))
  {
    die('FAIL');
  }
die('OK');
?>